package com.ricky.mq.client.message.data;

/**
 * 响应回调data
 *
 * @author ricky
 * @since 2020.06.18
 */
public class CallbackData {

    /**
     * 是否成功
     */
    private boolean success;

    /**
     * 返回的数据
     */
    private BaseData baseData;

    /**
     * 发送数据时间
     */
    private Long sendTimeMillis = System.currentTimeMillis();

    public static CallbackData build() {
        return new CallbackData();
    }

    public boolean isSuccess() {
        return success;
    }

    public CallbackData setSuccess(boolean success) {
        this.success = success;
        return this;
    }

    public BaseData getBaseData() {
        return baseData;
    }

    public CallbackData setBaseData(BaseData baseData) {
        this.baseData = baseData;
        return this;
    }

    public Long getSendTimeMillis() {
        return sendTimeMillis;
    }

}
